package com.example.tests;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

import org.testng.annotations.Test;

public class TestFolderRemoval  extends TestBase {
	
	@Test
	public void testFolderRemoval(){
		Folders oldFolders 	= app.getFolderHelper().getFolder();
		int removalFolder 	= app.getFolderHelper().removeFolder();
		Folders newFolders 	= app.getFolderHelper().getFolder();
		if (-1 != removalFolder){
			assertThat(newFolders, equalTo(oldFolders.withOut(removalFolder)));
		} else 
			System.out.print("[MY-WARNING] Not folders for deleting!");
	}
}
